*,
::before,
::after {
  box-sizing: border-box;
  border-color: currentcolor;
  border-style: solid;
  border-width: 0;
}

#app {
  width: 100%;
  height: 100%;
}

html {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  line-height: 1.5;
  tab-size: 4;
  text-size-adjust: 100%;
}

body {
  width: 100%;
  height: 100%;
  margin: 0;
  font-family:
    "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑",
    Arial, sans-serif;
  line-height: inherit;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizelegibility;
}

a {
  color: inherit;
  text-decoration: inherit;
}

img,
svg {
  display: inline-block;
}

svg {
  // 因icon大小被设置为和字体大小一致，而span等标签的下边缘会和字体的基线对齐，故需设置一个往下的偏移比例，来纠正视觉上的未对齐效果
  vertical-align: -0.15em;
}

ol,
ul,
li {
  padding: 0;
  margin: 0;
  list-style: none;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

a,
a:focus,
a:hover {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

a:focus,
a:active,
div:focus {
  outline: none;
}

p {
  margin: 0;
}

/**
 * **************** 快捷类 ********************
 */
.w {
  width: 100%;
}
.h {
  height: 100%;
}

.disf {
  display: flex;
  -webkit-display: flex;
}
.flex1 {
  flex: 1;
  -webkit-flex: 1;
}
.alc {
  align-items: center;
}
.alstart {
  align-items: flex-start;
}
.alstretch {
  align-items: stretch;
}
.jus {
  justify-content: flex-start;
}
.juc {
  justify-content: center;
}
.juend {
  justify-content: flex-end;
}
.jub {
  justify-content: space-between;
}
.dirc {
  flex-direction: column;
}

@for $i from 12 through 30 {
  // 间距
  .f#{$i} {
    font-size: $i + px !important;
  }
}
@for $i from 0 through 20 {
  // 宽高
  .w#{$i*5} {
    width: $i * 5px !important;
  }
  .h#{$i*5} {
    height: $i * 5px !important;
  }
  // 间距
  .mt#{$i*5} {
    margin-top: $i * 5px !important;
  }

  .mb#{$i*5} {
    margin-bottom: $i * 5px !important;
  }

  .ml#{$i*5} {
    margin-left: $i * 5px !important;
  }

  .mr#{$i*5} {
    margin-right: $i * 5px !important;
  }

  .m#{$i*5} {
    margin: $i * 5px !important;
  }

  //填充
  .pt#{$i*5} {
    padding-top: $i * 5px !important;
  }

  .pb#{$i*5} {
    padding-bottom: $i * 5px !important;
  }

  .ptb#{$i*5} {
    padding-top: $i * 5px !important;
    padding-bottom: $i * 5px !important;
  }

  .plr#{$i*5} {
    padding-left: $i * 5px !important;
    padding-right: $i * 5px !important;
  }

  .pl#{$i*5} {
    padding-left: $i * 5px !important;
  }

  .pr#{$i*5} {
    padding-right: $i * 5px !important;
  }

  .p#{$i*5} {
    padding: $i * 5px !important;
  }
}
